package com.sfy.mallchat.common.common.exception;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum CommonErrorEnum implements ErrorEnum{
    BUSINESS_ERROR(0, "业务错误"),
    SYSTEM_ERROR(-1, "系统错误"),
    PARAM_ERROR(-2, "参数校验错误"),
    LOCK_LIMIT(3,"请求太频繁");
    private Integer code;
    private String msg;

    @Override
    public Integer getErrorCode() {
        return code;
    }

    @Override
    public String getErrorMsg() {
        return msg;
    }
}
